<#include "header.html">

<div class="container">
    <div class="section">
        <div class="row">
            <div class="col s12 l9">
                <div class="card hoverable">
                    <div class="card-action ">
                        <a><i class=" material-icons left">textsms</i>消息</a>

                    </div>
                    <div class="collection">

                        <#list conversations as vo>
                            <a href="/msg/detail?conversationId=${vo.conversation.conversationId}" class="collection-item truncate">
                                <#if vo.unread != 0>
                                    <span class="new badge blue" data-badge-caption="未读">${vo.unread}</span>
                                </#if>
                                ${vo.fromUser.name} 对 ${vo.toUser.name} 说：${vo.conversation.content}</a>
                        </#list>

                    </div>

                    <div class="card-content">
                        <!-- 分页 -->
                        <ul class="pagination center">
                            <#if prePId??>
                            <li class="waves-effect"><a href="/msg/?pId=${prePId}"><i class="material-icons">chevron_left</i></a></li>
                        </#if>

                        <#if nextPId??>
                        <li class="waves-effect"><a href="/msg/?pId=${nextPId}"><i class="material-icons">chevron_right</i></a></li>
                    </#if>
                        </ul>

                    </div>
                </div>







            </div>
        </div>
    </div>



</div>


<#include "footer.html">